<?php


namespace app\model;


use think\Model;

/**
 * Class User
 *
 * @package app\model
 */
class User extends Model
{
    /**
     * @return \think\model\relation\HasMany
     */
    public function book(){
        return $this->hasMany(Book::class,'user_id','id');
    }
}